package net.togogo.controller;

import net.togogo.client.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description TODO
 * @Author 没有脑袋
 * @Date 2025/8/25 15:29
 */
@RestController
public class OrderController {

    @Autowired
    private ProductService productService;

    @GetMapping(value = "/order/{id}")
    public  String findProductsByOid(@PathVariable("id") Integer id) {
        return  productService.findProductsByOid(id);
    }

}
